package com.jinfang.bankpractice.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jinfang.bankpractice.mapper.HistoryMapper;
import com.jinfang.bankpractice.model.History;

@Service
public class HistoryService{

	@Resource
	private HistoryMapper historyMapper;
	

	
	public boolean add(History history) {
		return historyMapper.insertHistory(history)>=1;
	}
	
	public List<History> queryAll(long userid){
		return historyMapper.queryAll(userid);
	}

	
	public Long countBySample(History history) {
		return historyMapper.countBySample(history);
	}
	
	

	

}
